package cn.eyesea.cc.frame.enums;

/**
 * 逻辑结果类型
 *
 * @author wanghuilong
 * @version 1.0
 * @date 2021/6/23 4:06 下午
 */
public enum LogicalResultTypeEnum {

    MYBATIS_MAPPER_XML(ResultTypeEnum.XML, "mybatis的xml文件", "mybatis", "mapper"),
    MYBATIS_MAPPER(ResultTypeEnum.JAVA_INTERFACE, "mybatis的Mapper接口文件", "mapper", "mapper"),
    DO(ResultTypeEnum.JAVA_CLASS, "数据库对象", "entity", "DO"),

    //延伸逻辑类型
    VARIABLE(ResultTypeEnum.JAVA_VARIABLE, "变量", null, null),
    ;

    ResultTypeEnum resultType;

    private String desc;

    /**
     * 包名
     */
    private String packageInfo;

    /**
     * 名称后缀
     */
    private String suffix;

    LogicalResultTypeEnum(ResultTypeEnum resultType, String desc
            , String packageInfo, String suffix) {
        this.resultType = resultType;
        this.desc = desc;
        this.packageInfo = packageInfo;
        this.suffix = suffix;
    }

    public ResultTypeEnum getResultType() {
        return resultType;
    }

    public String getDesc() {
        return desc;
    }

    public String getPackageInfo() {
        return packageInfo;
    }

    public String getSuffix() {
        return suffix;
    }
}
